Defective pixel correction method and system

ABSTRACT

A defective pixel detection and correction mechanism for use in an image sensor integrated circuit determines whether a current pixel is a defective pixel in a consistent manner from frame to frame. The defective pixel detection and correction mechanism also replaces defective pixels with stable replacement values. The defective pixel detection and correction mechanism has a defective pixel detection mechanism that employs a look-up table with defective pixel locations for providing a non-varying determination of whether a pixel is defective or non-defective. The defective pixel detection and correction mechanism also has a defective pixel correction mechanism that employs a consistent replacement choice facility to provide a previous pixel value in the same frame, on the same row, and a predetermined number of pixels from the current pixel location as a replacement value and a replacement unit (e.g., multiplexer) for replacing the defective pixel value with the replacement value.

This application is a Continuation of U.S. patent application Ser. No. 09/834,061, filed Apr. 11, 2001 now U.S. Pat. No. 7,209,168, the entire disclosure of which is incorporated by reference herein.

FIELD OF THE INVENTION

The present invention relates generally to image sensors, and more particularly, to a defective pixel correction method and system for image sensors.

BACKGROUND OF THE INVENTION

Recent years have seen a proliferation of digital cameras, such as digital still cameras and digital video cameras. There are many consumer applications that require digital image capture. These applications can include, for example, still motion imaging, full motion imaging, security and surveillance applications, and video-conference applications. An important component in digital still cameras and digital video cameras is the image sensor integrated circuit. Image sensor integrated circuits employ an array of pixels (e.g., a 640×480 pixel array) for detecting photons of light and for converting the photons into an electrical signal (e.g. voltage).

Most image sensor integrated circuits are manufactured by utilizing a complimentary metal oxide semiconductor (CMOS) process. Unfortunately, as with any manufacturing process, image sensor parts have defective pixels. Customers of these parts do not wish to have any obvious defective pixels.

One approach to address defective pixels is to establish strict blemish specifications. For example, vendors of image sensor integrated circuits establish blemish specifications that prevent the shipment of sensors with more than a predetermined number of defects, with defects in certain locations, or with certain types of defects. Unfortunately, the blemish specifications result in lower yields and lower volumes for the manufacturer of the image sensors and higher costs for the customers.

A second approach to address the defective pixel problem is to use some type of defective pixel correction scheme. There are some CCD image sensors that have built-in hardware for use in correcting defective pixels. Unfortunately, these implementations require complex hardware components that occupy a large physical space, thereby making the scheme expensive to implement. Accordingly, these expensive and cumbersome solutions are relegated to only a few applications (e.g., high-end and low-volume applications).

Another hardware approach is described in a semiconductor technical data entitled, “Digital Image Sensor—SCM20014,” available from Motorola, Inc. Motorola's digital image sensor decides that pixels are defective independently from frame to frame and then corrects the defective pixels by replacing them with a varying value derived from neighboring pixels for that particular frame. Unfortunately, as described in greater detail hereinafter, this approach utilizes a detection and correction technique that can vary from frame to frame, thereby leading to undesirable image artifacts.

Moreover, some have proposed the use of software-based defective pixel correction techniques. Unfortunately, these prior art approaches require a processor with sufficient processing power to execute the software algorithms that perform the defective pixel correction. As can be appreciated, these software techniques are not available to products that do not have a processor. Furthermore, even for those products that have a processor, the software techniques consume large amounts of processor bandwidth, which may not be acceptable to other components that also require the processor bandwidth. As can be appreciated, the requirement of these software-based techniques for a processor increases the cost of such a product so that such an approach is also relegated to high-end image capture devices.

Some have proposed the use of a personal computer (PC) that can be coupled to a digital capture device (e.g., a digital camera) to execute the correction techniques. In such an approach, the digital capture device first sends the image with the defective pixels to the PC, and then the PC executes the defective pixel correction schemes to correct the image. An advantage of this approach is that the hardware required in the digital capture device can be simplified since the processing power of the PC is harnessed for executing the defective pixel correction software. Unfortunately, most PC connectable capture devices perform data compression on the image in order to transfer the data to the PC through a link (e.g., a USB cable). When compression is applied to the image, there is a high likelihood that the defects spread out and the appearance of the image becomes worse, making correction at the PC more difficult. Consequently, it is desirable to perform defective pixel correction in the sensor IC.

Furthermore, these prior art approaches provide 1) inconsistent defective pixel detection, and 2) inconsistent defective pixel correction, thereby causing undesirable artifacts in the resulting image.

One disadvantage of these prior art approaches is that the defective pixel detection may determine that a particular pixel is defective in one frame and not defective in another frame (hereinafter referred to as inconsistent defective pixel detection). As can be appreciated, inconsistent defective pixel detection provides inconsistent results from frame to frame, thereby leading to a loss of resolution at a pixel location. For example, in a first frame a particular pixel may be determined to be a defective pixel that is replaced with another value. In another frame, the same pixel may be determined to be a non-defective pixel that retains its pixel value. When this approach is applied in a digital video capture device, the inconsistent detection can cause artifacts in the resulting video, such as a blinking spot. Similarly, when the approach is applied in a digital still camera, the inconsistent detection can cause artifacts (e.g., a bright spot or spots) in the resulting image. Consequently, it would be desirable for there to be a defection pixel correction mechanism that consistently detects defective pixels from frame to frame.

Another disadvantage of this approach is that the defective pixel correction may replace the defective pixel value with different replacement choices from frame to frame (hereinafter referred to as inconsistent defective pixel correction). For example, in a first frame a pixel that is determined to be defective is replaced with a first value. In a second frame the same pixel that is defective may be replaced with a second value. In a digital still image, inconsistent replacement values for adjacent pixels may not be critical. However, for digital video, an inconsistent replacement value from frame to frame is very noticeable to the human eye. For example, a replacement value that varies for a defective pixel from frame to frame may appear to the human eye as a blinking spot in the video.

Based on the foregoing, there remains a need for a defective pixel correction method and system for image sensors that overcomes the disadvantages set forth previously.

SUMMARY OF THE INVENTION

According to one embodiment of the present invention, a defective pixel detection and correction mechanism for use in an image sensor integrated circuit is provided. The defective pixel detection and correction mechanism determines whether a current pixel is a defective pixel in a consistent manner from frame to frame. The defective pixel detection and correction mechanism also replaces defective pixels with consistent replacement choices.

In one embodiment, the defective pixel detection and correction mechanism has a defective pixel detection mechanism that employs a look-up table with defective pixel locations for providing a non-varying determination of whether a pixel is defective or non-defective. The defective pixel detection and correction mechanism also has a defective pixel correction mechanism that employs a consistent replacement choice facility to provide a previous pixel value in the same frame, on the same row, and a predetermined number of pixels from the current pixel location as a replacement pixel value. A replacement unit (e.g., multiplexer) is provided for replacing the defective pixel value with the replacement value.

According to another embodiment of the present invention, a defective pixel detection and correction method for use in correcting defective pixels in an image sensor integrated circuit is provided. First, a current pixel location is received. Second, a defective pixel location is received. Next, a determination is made whether the current pixel location is a defective pixel location. When the current pixel location is not a defective pixel location, providing a received pixel value (e.g., a value received from the analog to digital converter (ADC)) as output pixel value. When the current pixel location is a defective pixel location, providing a previous pixel value (e.g., a previous pixel value that is in the same frame, same row, and a predetermined number of pixels from the current pixel locations) as the output pixel value.

BRIEF DESCRIPTION OF THE DRAWINGS

The present invention is illustrated by way of example, and not by way of limitation, in the figures of the accompanying drawings and in which like reference numerals refer to similar elements.

FIG. 1 is a block diagram illustrating an exemplary image sensor in which the defective pixel detection and correction mechanism (DPDCM) of the present invention can be implemented.

FIG. 2 illustrates in greater detail the defective pixel detection and correction mechanism (DPDCM) of FIG. 1 in accordance with one embodiment of the present invention.

FIG. 3 illustrates in greater detail the defective pixel detection mechanism (DPDM) and the defective pixel correction mechanism (DPCM) of FIG. 2 in accordance with one embodiment of the present invention.

FIG. 4 is a flowchart illustrating the processing steps performed by the defective pixel detection and correction mechanism (DPDCM) of FIG. 2.

FIG. 5 illustrates an exemplary defective pixel location table.

DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENT

A defective pixel correction method and system for image sensors are described. In the following description, for the purposes of explanation, numerous specific details are set forth in order to provide a thorough understanding of the present invention. It will be apparent, however, to one skilled in the art that the present invention may be practiced without these specific details. In other instances, well-known structures and devices are shown in block diagram form in order to avoid unnecessarily obscuring the present invention.

Exemplary Image Sensor 100

FIG. 1 is a block diagram illustrating an exemplary image sensor 100 in which the defective pixel detection and correction mechanism (DPDCM) 110 of the present invention can be implemented. The image sensor 100 includes a sensor array 120 having a plurality of pixels 122 that are arranged in rows and columns. The image sensor 100 also includes row select logic 130 (hereinafter referred to as row selector) for selecting a row of the array 120 and a column select logic 140 (hereinafter referred to as column selector) for selecting a particular column in the array 120. Together, the row selector 130 and the column selector 140 specify a particular pixel in the array 120 for access (e.g. an access to read the value at the pixel).

The image sensor 100 also includes a timing controller 150, whose construction and operation is well known by those of ordinary skill in the art, for providing various control signals to components in the sensor 100. For example, the timing controller 150 provides signals to control the row selector 130 and the column selector 140.

The image sensor 100 also includes an amplifier 160 that is coupled to the output of the sensor array 120 for amplifying the output of the sensor array 120 and an analog to digital converter (ADC) 170 that is coupled to the amplifier 160 for converting the analog pixel values into corresponding digital pixel values. The timing controller 150 also provides signals to control the ADC 170.

The image sensor 100 can include the defective pixel detection and correction mechanism (DPDCM) 110 of the present invention. The defective pixel detection and correction mechanism (DPDCM) 110 detects and corrects of defective pixels in a stable and consistent manner, thereby reducing artifacts that stem from inconsistent detection and correction of defective pixels. The DPDCM 110 employs a look-up table with defective pixel locations for enabling consistent defective pixel detection and a consistent replacement choice facility for enabling stable defective pixel correction. The defective pixel location table and consistent replacement choice facility are described in greater detail hereinafter with reference to FIG. 2.

The DPDCM 110 includes a first input that is coupled to the ADC 170 for receiving the digital value of a current pixel. The DPDCM 110 also includes a plurality of inputs that are coupled to the timing controller 150 for receiving a plurality of signals therefrom. In this embodiment, the plurality of signals includes a start frame signal for indicating the start of a new frame, a start row signal for indicating the start of a new row, a current row signal for indicating a current row, and a current column signal for indicating a current column.

The DPDCM 110 also includes an input that is coupled to a sensor programming path 154. The sensor programming path 154 is provided to allow an external source (e.g., a designer or a component external to the DPDCM 110) to program and control the DPDCM 110. For example, the sensor programming path 154 can be utilized to program the look-up table with defective pixel locations that are determined, for example, by a manufacturing test. The sensor programming path 154 can include an enable signal that can be utilized to enable or disable the DPDCM 110 by selectively asserting or de-asserting the enable signal.

Based on these inputs, the DPDCM 110 determines whether a current pixel location is a defective pixel location. When the current pixel location is not a defective pixel location, the DPDCM 110 provides the pixel value received from the ADC 170 as an output pixel value. When the current pixel location is a defective pixel location, the DPDCM 110 provides a previous pixel value as the output pixel value. For example, the previous pixel value can be in the same frame, on the same row, and a predetermined number of pixels away from the current pixel. Preferably, the previous pixel is of the same color and two pixel locations to the left of the current pixel. The DPDCM 110 is described in greater detail hereinafter with reference to FIG. 2 and FIG. 3.

It is to be appreciated that the image sensor 100 can be implemented as a stand-alone integrated circuit for use with other integrated circuits (e.g., for use in chip set) or incorporated as a functional block in an application specific integrated circuit (ASIC). One aspect of the present invention is an efficient, space-saving, hardware implementation of a defective pixel detection and correction mechanism that obviates the need for processing power (e.g., a processor) required by prior art software techniques. Another advantage of the present invention is that the correction mechanism can be implemented in the sensor chip 100. The pixel correction mechanism of the present invention provides consistent defective pixel detection and consistent defective pixel correction with stable replacement values for the defective pixels.

Defective Pixel Detection and Correction Mechanism (DPDCM)

FIG. 2 illustrates in greater detail the defective pixel detection and correction mechanism (DPDCM) 110 of FIG. 1 in accordance with one embodiment of the present invention. It is noted that the DPDCM 110 can be implemented in a post ADC processing block 204 that performs digital signal processing on post ADC digital image data.

The DPDCM 110 includes a defective pixel detection mechanism (DPDM) 210 and a defective pixel correction mechanism (DPCM) 220 for eliminating artifacts that stem from inconsistent detection and artifacts that stem from inconsistent correction of defective pixel. respectively.

The defective pixel detection mechanism (DPDM) 210 provides a determination of whether a current pixel location is a defective pixel location in a manner that does not vary from frame to frame. In the preferred embodiment, the defective pixel detection mechanism 210 employs a look-up table with a plurality of defective pixel locations for enabling the consistent detection of defective pixels.

The defective pixel correction mechanism (DPCM) 220 replaces a current defective pixel with a previous pixel value that is a consistent replacement choice. Preferably, the previous pixel value is from the same frame, on the same row, and a predetermined number of pixels from the current defective pixel location (e.g., two pixels to the left of the current pixel location). The defective pixel correction mechanism employs a consistent replacement choice facility 254 to provide a previous pixel value in the same frame, on the same row, and a predetermined number of pixels from the current pixel location as a replacement pixel value. A replacement unit 250 (e.g., multiplexer) is provided for replacing the defective pixel value with the replacement value.

FIG. 3 illustrates in greater detail the defective pixel detection mechanism (DPDM) and the defective pixel correction mechanism (DPCM) of FIG. 2 in accordance with one embodiment of the present invention.

Defective Pixel Detection Mechanism 210

The defective pixel detection mechanism 210 includes a look-up table 230 for storing defective pixel locations, a register 234 for use in accessing (e.g., reading or writing) the defective pixel locations, an index 238 for pointing to a particular defective pixel location in the table 230, and an index manager 242 (e.g., an incrementer) for managing the index 238.

In the preferred embodiment, the defective pixel locations in the lookup table 230 are stored in a sorted order. In this manner, no search of the table is required, thereby saving hardware components and space. Furthermore, the last table entry is preferably coded as a non-existing location (e.g., a location that is off the end of the pixel array). In this manner, the last table entry is guaranteed never to match a current row and current column, and so the index is never incremented beyond the last entry. Consequently, no limit check need be performed on the lookup table index, thereby saving hardware components and space.

These enhancements to the lookup table 230 enable the defective pixel correction mechanism to be implemented in an even more efficient and cost-effective manner. By simplifying the hardware needed to implement the correction mechanism, the amount of physical space occupied is further reduced as compared with prior art approaches.

When the defective pixel locations are stored in a sorted order, the index manager 242 can be implemented with an incrementer that simply updates the index 238 (e.g., incrementing the index by one) whenever there is a match so that the index 238 points to the next defective pixel location in the table 230.

Exemplary Defective Pixel Location Table 230

FIG. 5 illustrates an exemplary configuration for the defective pixel location table 230. The table 230 can include a plurality of defective pixel locations (e.g., a first location, a second location, a third location and an Nth location). Each location can have a row value (e.g., ROW_(—)1, ROW_(—)2, . . . , ROW_N) and column value (e.g., COL_(—)1, COL_(—)2, . . . , COL_N) for specifying a pixel location in the array of pixels that is defective. The index manager 238 is employed to manage a table index 239 that points to one of the defective pixel locations. The index manager 238 has an input for receiving a start frame signal and responsive thereto for resetting the table index so that the index points to the first defective pixel location.

The index manager 238 can manage the index 239, for example, by incrementing the table index every time there is a match between the current pixel location and the current defective pixel location. In this regard, the index manager 238 can employ an incrementer that is responsive to the match signal for selectively updating the index 239 by one.

The defective pixel detection mechanism 210 also includes a match unit 240 that has a first input for receiving the current row and current column, a second input for receiving a next defective pixel location, and a third input for receiving an enable signal. The match unit 240 is provided to determine whether a current row and current column match with a row and column, respectively, that are specified by a defective pixel location. When the match unit 240 determines that a match has occurred, the match unit 240 asserts a match signal.

When the asserted match signal is provided to the replacement unit 250, the replacement unit 250 provides the output of the consistent replacement choice facility 254 as the output pixel value. In other words, the replacement unit 250 replaces the defective pixel value with a consistent replacement choice (e.g., a previous pixel value), which is described in greater detail hereinafter. The asserted match signal is also provided to the index manager 238 to update (e.g., to increment by one) the index 239 so that the index 239 points to the next defective pixel location in the table 230.

It is noted that the match unit 240 is provided with an enable input for receiving an enable signal that can be used by a designer to selectively disable the match unit 240 of the DPDCM 110 of the present invention. When the match unit 240 is disabled, the replacement unit 250 only provides the ADC output as the output pixel value (i.e., the output of the consistent replacement choice facility 254 is never provided as an output pixel value), thereby effectively disabling the DPDCM 110 of the present invention.

Defective Pixel Correction Mechanism 220

In one embodiment, the replacement unit 250 is implemented with a multiplexer 250 that has a first input coupled to the ADC 170 for receiving the output of the ADC 170 and a second input coupled to a consistent replacement choice facility 254, and a third input coupled to the match unit 240. Based on these inputs, the multiplexer 250 selectively outputs either the value provided by the ADC 170 or a previous pixel value provided by the consistent replacement choice facility 254. The replacement value can be, for example, a previous pixel that is in the same frame, in the same row, and that is a predetermined number of pixels from the current pixel (e.g., two pixels to the left of the current pixel location).

The consistent replacement choice facility 254 can be implemented with a delay line having a one-back circuit 260 coupled to a two-back circuit 264. Upon receipt of a start row signal, the one-back circuit 260 and the two-back circuit 264 are cleared. Thereafter, the current (N) output pixel value is provided to the one-back circuit 260 when the N+1 (next) pixel is being processed by the DPDCM 110 and then moved to the two-back circuit 264 when the N+2 pixel is processed by the DPDCM 110. The value in the two-back circuit 264 is then provided as one of the inputs to the multiplixer 250. When the match signal is asserted, the multiplexer outputs the replacement value (i.e., the output of the two-back circuit 264) instead of the output of the ADC 170. When the match signal is de-asserted (i.e., the current pixel is not a defective pixel location), the digital pixel value of the current pixel is provided as the output of the multiplexer 250. When a color filter with Bayer pattern is employed, the two step delay line provides a previous pixel value having the same color as the current pixel that is two pixels to the left of the current pixel location.

When either the first pixel location or the second pixel location is any of the rows is a defective pixel location, the output pixel value is assigned a zero value since two pixels need to be processed for each row before the output pixel value propagates to the output of the two-back circuit 264.

Defective Pixel Processing

FIG. 4 is a flowchart illustrating the processing steps performed by the defective pixel detection and correction mechanism (DPDCM) 110 of FIG. 2. In step 300, the DPDCM 110 is enabled. For example, an enable signal can be utilized to selectively enable or disable the defective pixel detection and correction mechanism 110. In step 304, a plurality of defective pixel locations is loaded into the look-up table 230. For example, the input/output register 234 can be employed to write defective pixel locations to the look-up table 230.

The step of loading the defective pixel locations can include the step of determining the defective pixel locations through a test (e.g., a manufacturing test). When the lookup table 230 is a read-only type of storage (e.g., a PROM), then the table is programmed during and/or after package test when the defective pixels are identified.

When the lookup table 230 is a random access type of storage (e.g., RAM), then the system in which the sensor is embedded identifies the defective pixels and writes the appropriate values into the RAM during system run-time. Loading the defective pixel locations can be a configuration step, an initial run time step, or a continuous process.

In decision block 306, a determination is made whether a new frame signal has been asserted. When a new frame signal has been asserted, the table index is reset in step 308. Thereafter, processing continues at step 310. When a new frame signal has not been asserted, processing proceeds to step 310.

In step 310, the current pixel location (e.g., the current row and current column) are received. In step 314, a defective pixel location pointed to by the table index is received. For example, a row and column corresponding to a defective pixel location pointed to by the index is accessed.

In decision block 340, a determination is made whether the current pixel location matches with the defective pixel location. For example, this step can involve 1) comparing the current row with the row of the defective pixel location (hereinafter referred to also as defective pixel row); 2) comparing the current column with the row of the column of the defective pixel location (hereinafter referred to also as defective pixel column); 3) determining whether there is a match between the current row and the defective pixel row; and 4) determining whether there is a match between the current column and the defective pixel column. As described earlier, the defective pixel locations can be stored in the look-up table 230 in a first order (e.g., a sorted order). Each defective pixel location can specify a row and column where a defective pixel may be found.

Step 340 can include the step of asserting a match signal when there is a match and de-asserting the match signal when there is no match. The match signal can then be utilized to control the MUX 250 to selectively provide either the output of the ADC 170 or to provide a replacement value (e.g., the output of the two-back circuit 264) as the output pixel value.

When there is no match, processing continues at step 330, where the output of the ADC 170 is provided as the output pixel value. In this case, a current pixel location is not a defective pixel location. It is noted that the detection of defective pixels is stable and consistent from frame to frame (i.e., the defective pixel locations are predetermined and do not vary from frame to frame). Consequently, the consistent defective pixel detection mechanism of the present invention reduces or eliminates artifacts that stem from an inconsistent defective pixel detection scheme. Processing then continues at decision block 306.

When there is a match, in step 344 a previous pixel value is provided as the output pixel value. Preferably, the previous pixel value is in the same frame, in the same row, and two pixels to the left from the current pixel location. In this case, a current pixel location is a defective pixel location. It is noted that the correction of defective pixels is stable and consistent from frame to frame (i.e., a previous pixel value is chosen that is a predetermined or a fixed number of pixels from the current pixel location to replace the defective pixel). Consequently, the consistent defective pixel correction mechanism of the present invention reduces or eliminates the artifacts that stem from an inconsistent defective pixel correction scheme.

In step 350, an index into the table of defective pixel locations is incremented so that the index points to the next defective pixel location. Processing then continues at decision block 306.

The defective pixel detection and correction technique of the present invention also effectively handles the case of multiple adjacent defective pixels. The de-mosaicing process tends to smooth out the effects of adjacent pixels being set to previous pixels (e.g., two pixels to the left of the current pixel location). The de-mosaicing process examines surrounding pixels to estimate the color values of each given pixel. For example, when a defective red pixel is set to a value of a previous red pixel two places to the left of the current pixel, the blue and green values for the current pixel location are interpolated with neighbors of the current pixel location and not the neighbors of the previous pixel, thereby tending to smooth out the effects of the pixel correction. Consequently, the defective pixel detection and correction technique of the present invention allows sensors with clusters of adjacent defective pixels to be hidden from the system.

In the foregoing specification, the invention has been described with reference to specific embodiments thereof. It will, however, be evident that various modifications and changes may be made thereto without departing from the broader scope of the invention. The specification and drawings are, accordingly, to be regarded in an illustrative rather than a restrictive sense. 

1. A circuit to correct defective pixels in an array having a plurality of pixels, comprising: a defective pixel detector including a defective pixel table storing predetermined defective pixel locations, the defective pixel detector sequentially receiving a series of pixel locations from the array; a matching unit matching respective ones of the sequentially received pixel locations with respective, stored defective pixel locations; a defective pixel corrector configured to replace selected ones of pixel values associated with the matched, defective pixel locations with replacement values; a mode setting unit to set a first mode or a second mode; wherein: (i) in the first mode, the defective pixel corrector replaces the pixel values corresponding to the matched defective pixel locations with the replacement values and outputs the replacement values, as output values; and (ii) in the second mode, the defective pixel corrector outputs the pixel values corresponding to the sequentially received pixel locations, as the output values, wherein the defective pixel corrector includes: a memory circuit buffering a pixel value of a pixel which is in a predetermined location relative to a selected pixel location, and a multiplexer for receiving a match signal in accordance with the mode set, receiving the buffered pixel value and a pixel value associated with the selected pixel location and outputting one of the buffered pixel value or the selected pixel value, as the output value; wherein the memory circuit includes a plurality of buffering elements, formed as a delay line, the buffered pixel value is a pixel value associated with another selected pixel location received by the multiplexer prior to the selected pixel value and is input to the memory circuit from the output of the multiplexer such that each respective buffered pixel value is input to the multiplexer, as one of: (1) a previously received selected pixel value or (2) a previously input buffered pixel value.
 2. The circuit according to claim 1, wherein the multiplexer outputs: the selected pixel value when (1) the second mode is set or (2) the selected pixel location does not match any stored defective pixel locations; and the buffed pixel value when the first mode is set and the selected pixel location matches a respective, stored defective pixel location.
 3. The circuit according to claim 1, further comprising: an index manager coupled to the defective pixel table and the matching unit, the index manager receiving the match signal and responsive to the match signal manages a table index that points to a respective, defective pixel location in the defective pixel table.
 4. The circuit of claim 3, further comprising: a timing controller, generating at least one timing signal indicating a start of a frame, wherein the index manager is further coupled to the timing controller such that the indexed manager responsive to the match unit indicating a match, increments the table index so that the table index points to a next defective pixel location in the table and responsive to the start of the frame, resets the table index to point to a starting position in the index table.
 5. A method correcting at least one defective pixel of an array of pixels, comprising the steps of: storing defective pixel locations of the pixel array in a table in a prearranged order; receiving a current pixel location from the pixel array; determining whether the current pixel location is a defective pixel location; responsive to the current pixel location being a defective pixel location, outputting a previous pixel value, as an output pixel value; and incrementing, by an index manager, an index of the table to point to a next defective pixel location in the table responsive to the current pixel location being the defective pixel location; receiving, by the index manager, a frame starting signal; and resetting, by the index manager, the index of the table to point to a starting position based on the received frame start signal, wherein the last entry in the table is coded as a location which does not exist in the array of pixels such that the index is not incremented past the last entry in the table.
 6. Apparatus to correct at least one defective pixel of an array of pixels, comprising: a defective pixel detector including a defective pixel table storing defective pixel locations; a matching unit matching received pixel locations from the array with respective, stored defective pixel locations; a defective pixel corrector configured to replace a pixel value associated with a respective, matched defective pixel location with a replacement value; a table having an index; and an index manager incrementing the index of the table to point to a next defective pixel location in the table responsive to the received pixel location being matched to the respective, matched defective pixel location, the index manager receiving a frame starting signal and resetting the index of the table to point to a starting position of the table based on the received frame start signal, wherein the last entry in the table is coded as a location which does not exist in the array of pixels such that the index is not incremented past the last entry in the table. 